package com.ruoyi.logistics.service;

import com.ruoyi.logistics.domain.TraceLngLat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.api.domain.TraceTransport;
import com.ruoyi.system.api.domain.vo.CropsVo;

import java.util.List;

/**
 * @author lx
 * @description 针对表【trace_transport(物流管理信息)】的数据库操作Service
 * @createDate 2023-05-29 09:50:00
 */
public interface TraceTransportService extends IService<TraceTransport> {

    List<TraceTransport> listTransport(String driverId);

    int saveAndUpdateTransportInfoToDb(TraceLngLat traceLngLat);

    int insertSelective(TraceTransport record);

    /**
     * 根据部门id获取农作物列表
     *
     * @param deptId
     * @return
     */
    List<TraceTransport> listCrops(String deptId);

    List<CropsVo> queryCropsList(Integer deptId);

    int changeInToOut(String cropsId);

    int addTransport(TraceTransport traceTransport);

    int updateReceiveStatus(TraceTransport traceTransport);
}
